<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>04文件名匹配</title>
    <script>
    // name.jpg
    // g01.jpg
    // xiao.pingguo.mp3

    var reg = /.+\.\w+$/i;

    // 扩展名不能使用下划线
    reg = /.+\.[\da-z]+$/
    </script>
</head>

<body>
    
</body>

</html>
